package com.zhn.evsi.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhn.evsi.client.CorporationClient;
import com.zhn.evsi.domain.dto.evsi.common.EvsiIconDTO;
import com.zhn.evsi.domain.dto.evsi.corporation.EvsiCorporationPublicInfoDTO;
import com.zhn.evsi.domain.entity.evsi.EvsiCorporation;
import com.zhn.evsi.mapper.EvsiCorporationMapper;
import com.zhn.evsi.service.IEvsiCorporationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EvsiCorporationServiceImpl extends ServiceImpl<EvsiCorporationMapper, EvsiCorporation> implements IEvsiCorporationService {

    @Autowired
    private CorporationClient corporationClient;

    /**
     * 军团公开信息
     * */
    @Override
    public EvsiCorporationPublicInfoDTO publicInfo(Integer corporationId) {
        return corporationClient.corporations(corporationId);
    }

    /**
     * 军团图标
     * */
    @Override
    public EvsiIconDTO corporationIcon(Integer corporationId) {
        return corporationClient.corporationIcon(corporationId);
    }

    /**
     * npc军团树形结构
     * */
    @Override
    public Object npcCorpTree() {
        return null;
    }
}
